//
//  ViewController.swift
//  DMRLogDemo
//
//  Created by Riven on 2025/10/26.
//

import UIKit
//import DMRLog
import DMRCommonBaseLib
import JKSwiftExtension
import SwiftyOverlay

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
        
//        DMRLog.configLog(nil, logFileName: nil)
//        
//        DMRLog.logInfo("abc");
        let btn = UIButton(frame: CGRect(x: 100, y: 100, width: 100, height: 100))
        btn.backgroundColor = .red
        view.addSubview(btn)
            
        btn.addTarget(self, action: #selector(click(sender:)), for: .touchUpInside)
    }
    
    @objc func click(sender: UIButton) {
        let go = GDOverlay()
        go.highlightView = true
        go.headRadius = 4
        go.drawOverlay(to: sender, desc: NSAttributedString("你好"))
    }


}

